home *** CD-ROM | disk | FTP | other *** search
-
-
-
- DDDDiiiiaaaallll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV DDDDiiiiaaaallll((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- SSSSggggDDDDiiiiaaaallll - The Dial widget class
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<SSSSggggmmmm////DDDDiiiiaaaallll....hhhh>>>>
-
-
- VVVVEEEERRRRSSSSIIIIOOOONNNN
- This page documents the version of Sgm that accompanies
- Motif 2.1.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Dial is used by an application to allow the user to input or
- modify a value from within a range of values.
-
- A Dial has a rectangular region within which a knob or
- pointer graphic is displayed. The user can modify the
- Dial's value by spinning this knob or pointer.
-
- CCCCllllaaaasssssssseeeessss
- Dial inherits behavior and resources from CCCCoooorrrreeee and PPPPrrrriiiimmmmiiiittttiiiivvvveeee
- classes.
-
- The class pointer is ssssggggDDDDiiiiaaaallllWWWWiiiiddddggggeeeettttCCCCllllaaaassssssss.
-
- The class name is SSSSggggDDDDiiiiaaaallll.
-
- NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
- The following table defines a set of widget resources used
- by the programmer to specify data. The programmer can also
- set the resource values for the inherited classes to set
- attributes for this widget. To reference a resource by name
- or by class in a .Xdefaults file, remove the XXXXmmmmNNNN, SSSSggggNNNN, XXXXmmmmCCCC,
- or SSSSggggCCCC prefix and use the remaining letters. To specify one
- of the defined values for a resource in a .Xdefaults file,
- remove the XXXXmmmm prefix and use the remaining letters (in
- either lowercase or uppercase, but include any underscores
- between words). The codes in the access column indicate if
- the given resource can be set at creation time (C), set by
- using XXXXttttSSSSeeeettttVVVVaaaalllluuuueeeessss (S), retrieved by using XXXXttttGGGGeeeettttVVVVaaaalllluuuueeeessss (G),
- or is not applicable (N/A).
-
- SSSSggggDDDDiiiiaaaallll RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ___________________________________________________________________________
- SgNdialMarkers SgCMarkers int 16 CSG
- XmNminimum XmCMinimum int 0 CSG
- XmNmaximum XmCMaximum int 360 CSG
- SgNstartAngle SgCStartAngle int 0 CSG
- SgNangleRange SgCAngleRange int 360 CSG
-
-
-
-
-
- Page 1 (printed 10/3/02)
-
-
-
-
-
-
- DDDDiiiiaaaallll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV DDDDiiiiaaaallll((((3333XXXX))))
-
-
-
- SgNindicatorColor XmCColor Pixel Red CSG
- XmNvalue XmCValue Position 0 CSG
- SgNmarkerLength XmCLength Dimension 8 CSG
- SgNdialForeground SgCForeground Pixel Red CSG
- SgNdialVisual SgCDialVisual SgDialVisual SgKNOB CSG
- XmNvalueChangedCallback XmCCallback XtCallbackList NULL C
- XmNdragCallback XmCCallback XtCallbackList NULL C
-
-
- SSSSggggNNNNddddiiiiaaaallllMMMMaaaarrrrkkkkeeeerrrrssss
- Specifies the number of divisions around the
- perimeter of the dial. A "tick mark" will be
- drawn at each division, filled with the color set
- by SSSSggggNNNNddddiiiiaaaallllFFFFoooorrrreeeeggggrrrroooouuuunnnndddd.
-
- XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm
- Specifies the dial's maximum value. XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm
- must be greater than or equal to XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm.
-
- XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm
- Specifies the dial's minimum value. XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm
- must be greater than or equal to XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm.
-
- SSSSggggNNNNssssttttaaaarrrrttttAAAAnnnngggglllleeee
- Specifies the whole number angle (0-360) where the
- dial will start increasing.
-
- SSSSggggNNNNaaaannnngggglllleeeeRRRRaaaannnnggggeeee
- Specifies the angular range, in degrees, through
- which the dial is allowed to rotate. This, in
- conjunction with XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm and XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm,
- controls the fineness or coarseness of the dial
- control.
-
- SSSSggggNNNNiiiinnnnddddiiiiccccaaaattttoooorrrrCCCCoooolllloooorrrr
- Specifies the color to be used for filling in the
- center of the dial pointer, in SSSSggggPPPPOOOOIIIINNNNTTTTEEEERRRR mode.
-
- XXXXmmmmNNNNvvvvaaaalllluuuueeee Specifies the current position of the dial,
- between XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm and XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm.
-
- SSSSggggNNNNmmmmaaaarrrrkkkkeeeerrrrLLLLeeeennnnggggtttthhhh
- Specifies the length (in pixels) of each tick mark
- on the dial. The width of each tick mark is
- derived from the length (length/3).
-
- SSSSggggNNNNddddiiiiaaaallllFFFFoooorrrreeeeggggrrrroooouuuunnnndddd
- Specifies the color to be used for filling in the
- tick marks around the perimeter of the dial.
-
- SSSSggggNNNNddddiiiiaaaallllVVVViiiissssuuuuaaaallll
- Specifies the look of the dial, either SSSSggggKKKKNNNNOOOOBBBB or
-
-
-
- Page 2 (printed 10/3/02)
-
-
-
-
-
-
- DDDDiiiiaaaallll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV DDDDiiiiaaaallll((((3333XXXX))))
-
-
-
- SSSSggggPPPPOOOOIIIINNNNTTTTEEEERRRR.
-
- XXXXmmmmNNNNvvvvaaaalllluuuueeeeCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk
- Specifies the list of callbacks that is called
- when the value of the dial has changed. The
- reason sent by the callback is XXXXmmmmCCCCRRRR____VVVVAAAALLLLUUUUEEEE____CCCCHHHHAAAANNNNGGGGEEEEDDDD.
-
- XXXXmmmmNNNNddddrrrraaaaggggCCCCaaaallllllllbbbbaaaacccckkkk
- Specifies the list of callbacks that is called
- when the dial position changes as the dial is
- being spun. The reason sent by the callback is
- XXXXmmmmCCCCRRRR____DDDDRRRRAAAAGGGG.
-
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
- Dial inherits behavior and resources from the following
- superclasses. For a complete description of each resource,
- refer to the man page for that superclass.
-
- XXXXmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ________________________________________________________________________________________________
- XmNbottomShadowColor XmCBottomShadowColor Pixel dynamic CSG
- XmNbottomShadowPixmap XmCBottomShadowPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNforeground XmCForeground Pixel dynamic CSG
- XmNhelpCallback XmCCallback XtCallbackList NULL C
- XmNhighlightColor XmCHighlightColor Pixel dynamic CSG
- XmNhighlightOnEnter XmCHighlightOnEnter Boolean False CSG
- XmNhighlightPixmap XmCHighlightPixmap Pixmap dynamic CSG
- XmNhighlightThickness XmCHighlightThickness Dimension 0 CSG
- XmNnavigationType XmCNavigationType XmNavigationType XmNONE CSG
- XmNshadowThickness XmCShadowThickness Dimension 0 CSG
- XmNtopShadowColor XmCTopShadowColor Pixel dynamic CSG
- XmNtopShadowPixmap XmCTopShadowPixmap Pixmap dynamic CSG
- XmNtraversalOn XmCTraversalOn Boolean False CSG
- XmNunitType XmCUnitType unsigned char dynamic CSG
- XmNuserData XmCUserData XtPointer NULL CSG
-
- CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ______________________________________________________________________________________________________________
- XmNaccelerators XmCAccelerators XtAccelerators dynamic CSG
- XmNancestorSensitive XmCSensitive Boolean dynamic G
- XmNbackground XmCBackground Pixel dynamic CSG
- XmNbackgroundPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderColor XmCBorderColor Pixel XtDefaultForeground CSG
- XmNborderPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderWidth XmCBorderWidth Dimension 0 CSG
- XmNcolormap XmCColormap Colormap dynamic CG
- XmNdepth XmCDepth int dynamic CG
-
-
-
-
-
- Page 3 (printed 10/3/02)
-
-
-
-
-
-
- DDDDiiiiaaaallll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV DDDDiiiiaaaallll((((3333XXXX))))
-
-
-
- XmNdestroyCallback XmCCallback XtCallbackList NULL C
- XmNheight XmCHeight Dimension dynamic CSG
- XmNinitialResourcesPersistent XmCInitialResourcesPersistent Boolean True C
- XmNmappedWhenManaged XmCMappedWhenManaged Boolean True CSG
- XmNscreen XmCScreen Screen * dynamic CG
- XmNsensitive XmCSensitive Boolean True CSG
- XmNtranslations XmCTranslations XtTranslations dynamic CSG
- XmNwidth XmCWidth Dimension dynamic CSG
- XmNx XmCPosition Position 0 CSG
- XmNy XmCPosition Position 0 CSG
-
- CCCCaaaallllllllbbbbaaaacccckkkk IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn
- A pointer to the following structure is passed to each
- callback:
-
- ttttyyyyppppeeeeddddeeeeffff ssssttttrrrruuuucccctttt
- {{{{
- iiiinnnntttt _r_e_a_s_o_n;;;;
- XXXXEEEEvvvveeeennnntttt * _e_v_e_n_t;;;;
- iiiinnnntttt _p_o_s_i_t_i_o_n;;;;
- }}}} SSSSggggDDDDiiiiaaaallllCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt;;;;
-
-
- _r_e_a_s_o_n Indicates why the callback was invoked
-
- _e_v_e_n_t Points to the XXXXEEEEvvvveeeennnntttt that triggered the callback
-
- _p_o_s_i_t_i_o_n
- Is the new dial value
-
-
- BBBBeeeehhhhaaaavvvviiiioooorrrr
- Dial behavior is described below:
-
-
- BBBBSSSSeeeelllleeeecccctttt PPPPrrrreeeessssssss or BBBBDDDDrrrraaaagggg PPPPrrrreeeessssssss:
- Activates the interactive dragging of the dial.
-
- BBBBSSSSeeeelllleeeecccctttt MMMMoooottttiiiioooonnnn or BBBBDDDDrrrraaaagggg MMMMoooottttiiiioooonnnn:
- Motion events spin the dial to follow the motion
- of the pointer and call the callbacks for
- XXXXmmmmNNNNddddrrrraaaaggggCCCCaaaallllllllbbbbaaaacccckkkk.
-
- BBBBSSSSeeeelllleeeecccctttt RRRReeeelllleeeeaaaasssseeee or BBBBDDDDrrrraaaagggg RRRReeeelllleeeeaaaasssseeee:
- If the dial position has changed, the callbacks
- for XXXXmmmmNNNNvvvvaaaalllluuuueeeeCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk are called.
-
-
- VVVViiiirrrrttttuuuuaaaallll BBBBiiiinnnnddddiiiinnnnggggssss
- The bindings for virtual keys are vendor specific. For
- information about bindings for virtual buttons and keys, see
- VVVViiiirrrrttttuuuuaaaallllBBBBiiiinnnnddddiiiinnnnggggssss((((3333XXXX)))).
-
-
-
- Page 4 (printed 10/3/02)
-
-
-
-
-
-
- DDDDiiiiaaaallll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV DDDDiiiiaaaallll((((3333XXXX))))
-
-
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- PPPPrrrriiiimmmmiiiittttiiiivvvveeee((((3333XXXX)))), CCCCoooorrrreeee((((3333XXXX))))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 5 (printed 10/3/02)
-
-
-
-